﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="step_assess.aspx.cs" Inherits="Xnjc_jxkh_step_assess" %>


<%    
   
    if (displayType.Equals("charts"))
    {
		
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head runat="server">
    <title>图表分析</title>

    <script type="text/javascript">
        var resourceUri = "../images/resource/";
    </script>

    <script type="text/javascript" src="../ScriptFile/common.js"></script>

    <script type="text/javascript" src="../ScriptFile/java_class.js"></script>

    <script type="text/javascript" src="../ScriptFile/qx.js"></script>

    <script type="text/javascript" src="../ScriptFile/qxdutil.js"></script>

</head>
<body>
   <script type="text/javascript">
	//你的程序要形成虚线之间这些内容，后面的程序会画出图表
	//---------------------------------------------------------
	var flashPath = "../penalty/";//flash所在的路径
	var secondsPerDay = <%=secondsPerDay%>;
	var chartSettings = 	[{
			data : null,
			config : {
				caption : "执行数目",
				subCaption : "",
				yaxisname : "执行数（件）",
				xaxisname : "执行人"
			}
		},{
			data : null,
			config : {
				caption : "平均执行时间",
				subCaption : "",
				yaxisname : "执行时间(天)",
				xaxisname : "执行人"
			}
		}
		
		];
	
	chartSettings[0].data = [
	<%
	    int i=0;
		foreach (System.Collections.Generic.List<string> m in alWorkStatus){
			string name = m[0];
			string value_Renamed = m[2];
			if (i != 0)
			{
				Response.Write(",");
			}
				
			i++;
			
		%>
			{name : "<%=name%>",value : <%=value_Renamed%>}
		<%
		}
	%>
	];
	chartSettings[1].data = [
	<%
	    i=0;
		foreach (System.Collections.Generic.List<string> m in alWorkStatus){
			string name = m[0];
			string value_Renamed = m[3];
			string cnt = m[2];
			if (i != 0)
			{
				Response.Write(",");
			}
			i++;
			
		%>
			{name : "<%=name%>",value : <%=value_Renamed%>*1.0/secondsPerDay/<%=cnt%>}
		<%
		}
	%>
	];
	//------------------------------------------------
	
	
    </script>
    <script>
        document.write("<" + "script type=\"text/javascript\" src=\"../ScriptFile/chart.js?" + (new Date()).getTime() + "\"></" + "script>");
    </script>

</body>
</html>
<%
    return;
    }
	
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>岗位执行情况</title>

    <script language="Javascript">

        function mouseMove(trname) {
            return;
            var hidden3 = document.getElementById("hidden3");
            hidden3.value = trname.style.backgroundColor;
            trname.style.backgroundColor = '#caf7fd';
        }
        function mouseOut(trname) {
            return;
            var hidden3 = document.getElementById("hidden3");
            trname.style.backgroundColor = hidden3.value;
        }
    </script>

    <link href="../css/page.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--所有或在某个时间段内，在某个岗位上，所有人的岗位执行情况-->
    <table width="100%" cellspacing="0" cellpadding="0" align="center" border="0" class="tab">
        <tr>
            <th>
                姓名
            </th>
            <th>
                数目
            </th>
            <th>
                平均用时
            </th>
            <th>
                详细
            </th>
        </tr>
        <%=strhtml  %>
    </table>
</body>
</html>
